<?php
require_once '../../classes/includeAll_Layer2.php';

//$sessionId = 5; //debug
$isAdmin=true;
$switchID  = filter_input(INPUT_POST,"switchID");

if($switchID == null || $switchID == false|| !$isAdmin)
{
  echo "false";
  exit();
}
require '../../resources/getConnection.php';

$configSwitchClass = new ConfigSwitch($switchID, $connection);

if($configSwitchClass->deleteChangeFlag())
{

    echo "true";
}

?>

